myfreeweb [Tue, 19 Jun 2018 14:49:18 +0000 (14:49 +0000)]
wayland: Use shm_open(SHM_ANON) on FreeBSD
This functionality is similar to Linux's memfd. It creates anonymous shared memory without touching the filesystem, which allows it to work in Capsicum capability mode (sandbox).
Benjamin Otte [Mon, 18 Jun 2018 14:17:44 +0000 (16:17 +0200)]
x11: Always set None pixmap for no background
None means no background, so it's always the correct thing to use and
ParentRelative is always wrong.
Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1134
Chun-wei Fan [Tue, 19 Jun 2018 10:30:22 +0000 (18:30 +0800)]
gtk/gtkemojicompletion.c: Fix build on C89 and non-GCC
Declare variables at the top of the clock, and ensure that we don't try
to use g_autoptr(), which is a GCCism.
Chun-wei Fan [Wed, 28 Mar 2018 03:59:11 +0000 (11:59 +0800)]
gtk/language-names.c: Fix build on non-GCC/CLang
Remove g_auto*() usage from these sources and use the traditional
g_free(), as g_auto*() are GCCisms (or CLangisms).
Also, don't include unistd.h unconditionally and stop including
langinfo.h and dirent.h, since they seem to be unused.
Partially cherry-picked from
a4c0395343c3969c330cb37efa45ae952ba74b86
https://bugzilla.gnome.org/show_bug.cgi?id=773299
Matthias Clasen [Mon, 18 Jun 2018 11:24:36 +0000 (11:24 +0000)]
Merge branch 'window-activate-grab-3-again-24' into 'gtk-3-24'
gdk: activate surface on keyboard grabs
See merge request GNOME/gtk!176
Samuel Thibault [Fri, 1 Jun 2018 14:43:01 +0000 (16:43 +0200)]
gdk: activate surface on keyboard grabs
In
01455399e83a ("gdk: do not deactivate surface on keyboard grabs"), we
made gdk avoid deactivating surfaces when another application takes a
keyboard grab, by using has_focus_window instead of has_focus. That however
broke activating surfaces when the gdk application acquired a grab itself,
in which case has_focus_window is false but has_focus is true.
We thus actually need to use both: surfaces should be activated either
because we have normal keyboard focus, or because we grabbed the keyboard.
This also renames HAS_FOCUS to APPEARS_FOCUSED to better reflect its
role.
Fixes #85
(cherry picked from commit
3287ac96e02ff236d74db10164c5b0c1e7b2b0bf)
Mohammed Sadiq [Sat, 16 Jun 2018 05:05:55 +0000 (10:35 +0530)]
search-bar: Fix link to search-bar example
The master branch is now Gtk4. We should be linking to
stable branch here.
Michael Natterer [Mon, 11 Jun 2018 16:36:50 +0000 (18:36 +0200)]
gtk: fix wheel scrolling for very small adjustment page_size
For very small page sizes of < 1.0, the effect of pow() is the
opposite of what's intended and the scroll steps become unusably
large, make sure we never get a scroll_unit larger than page_size /
2.0, which used to be the default before the pow() magic was
introduced.
Victor Toso [Thu, 24 May 2018 13:42:47 +0000 (15:42 +0200)]
gdkseatdefault: Don't hide GdkWindow on grab failure
Application is not expecting that.
Bug found due gdk_seat_grab() failure on Lock Screen. When user
Unlock the screen, the application is visible but does not receive
enter-event any more on X11/GNOME.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=
1485968
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=
1571422
Signed-off-by: Victor Toso <victortoso@redhat.com>
Signed-off-by: Carlos Garnacho <mrgarnacho@gmail.com>
Piotr Drąg [Sun, 10 Jun 2018 13:31:47 +0000 (15:31 +0200)]
Update Polish translation
Matthias Clasen [Fri, 8 Jun 2018 10:54:42 +0000 (10:54 +0000)]
Merge branch 'lrn/gks_vk_menu' into 'gtk-3-24'
GDK W32: Don't forget to check VK_MENU and set MK_ALT
See merge request GNOME/gtk!181
Matthias Clasen [Thu, 7 Jun 2018 19:52:02 +0000 (19:52 +0000)]
Merge branch 'wip/tchaik/fontconfig-timestamp' into 'gtk-3-24'
wayland: Implement 'gtk-fontconfig-timestamp' & 'gtk-modules'
See merge request GNOME/gtk!157
Matthias Clasen [Thu, 7 Jun 2018 18:30:48 +0000 (18:30 +0000)]
Merge branch 'gtk-3-24' into 'gtk-3-24'
Fix reference to user styles in gtkstyleprovider.h
See merge request GNOME/gtk!183
Mohammed Sadiq [Thu, 7 Jun 2018 10:14:14 +0000 (15:44 +0530)]
font-button: Suggest non deprecated function in docs
gtk_font_button_get_font_name() has been deprecated in 3.22 and
its public API is removed from GTK4.
Matijs van Zuijlen [Thu, 7 Jun 2018 08:49:59 +0000 (08:49 +0000)]
Fix reference to user styles in gtkstyleprovider.h
Jordi Mas [Wed, 6 Jun 2018 17:58:34 +0000 (18:58 +0100)]
Update Catalan translation
Jordi Mas [Wed, 6 Jun 2018 07:25:49 +0000 (08:25 +0100)]
Update Catalan translation
Руслан Ижбулатов [Wed, 6 Jun 2018 01:06:38 +0000 (01:06 +0000)]
GDK W32: Don't forget to check VK_MENU and set MK_ALT
Matthias Clasen [Tue, 5 Jun 2018 22:12:45 +0000 (22:12 +0000)]
Merge branch '1088-getting-css-properties-defined-in-em-etc-in-px-rounds-toward-0-delivering-1-too-few-pixels' into 'gtk-3-24'
Resolve "Getting CSS properties defined in em (etc.) in px rounds toward 0, delivering 1 too few pixels"
See merge request GNOME/gtk!158
Daniel Boles [Mon, 21 May 2018 20:40:39 +0000 (21:40 +0100)]
CssGadget: Round px values up for min-width|height
Otherwise, requesting a min size in em where the equivalent in px had a
fractional part would lead to the gadget getting allocated 1 too few px.
You could see this in the CSS property vs. allocation in the Inspector.
Note that margin/border/padding are left alone: the rationale is that we
do as browsers do, and Benjamin said we already do that for those,
whereas his tests on min-(width|height) showed otherwise. My subsequent
analysis indicated it to be far less clear-cut than that, but he remains
unconvinced that we should ceil() all the things! So just do these ones.
https://gitlab.gnome.org/GNOME/gtk/issues/1088
Matthias Clasen [Tue, 5 Jun 2018 17:07:05 +0000 (13:07 -0400)]
docs: Add indices for 3.24 api
We have some now.
Matthias Clasen [Tue, 5 Jun 2018 17:01:55 +0000 (13:01 -0400)]
Add new fontchooser api to the docs
We have docs.
Matthias Clasen [Tue, 5 Jun 2018 17:00:11 +0000 (13:00 -0400)]
Add gdk_window_move_to_rect to the docs
We have docs.
Matthias Clasen [Tue, 5 Jun 2018 16:57:46 +0000 (16:57 +0000)]
Merge branch 'wip/move-to-rect-public-gtk-3-24' into 'gtk-3-24'
gdk: Make gdk_window_move_to_rect public (gtk-3-24)
See merge request GNOME/gtk!180
Jonas Ådahl [Tue, 5 Jun 2018 13:01:52 +0000 (15:01 +0200)]
gdk: Make gdk_window_move_to_rect public
This is the API used by GtkMenu to properly position menus on the screen
without requiring GTK to query the menu window's position or the work
area of where the window is positioned. It makes it possible to position
popup windows properly when using Wayland.
Make this API available to external users so custom popup windows can be
positioned properly as well.
Closes: https://gitlab.gnome.org/GNOME/gtk/issues/997
Matthias Clasen [Mon, 4 Jun 2018 10:53:39 +0000 (06:53 -0400)]
Update NEWS
Matthias Clasen [Mon, 4 Jun 2018 21:06:30 +0000 (17:06 -0400)]
Bump version to 3.23.0
Yes, we are adding some api here.
Matthias Clasen [Mon, 4 Jun 2018 11:21:27 +0000 (07:21 -0400)]
Miscellaneous font chooser fixes
Fix various oversights in the backports of the
font chooser features.
Matthias Clasen [Mon, 2 Apr 2018 17:34:22 +0000 (13:34 -0400)]
font chooser: Make the language property writable
This is meant as an input to the font chooser.
We don't want the user to select a language, but
rather have fonts presented as they would work for
the current language. Therefore, do away with the
lang/script combo on the tweak page.
Matthias Clasen [Sun, 1 Apr 2018 23:35:55 +0000 (19:35 -0400)]
font chooser: Add examples for font features
For some font features, we can figure out affected
glyphs, and show before/after. For some others, we
hardcode typical sequences.
Still to do: figure out how to find ligatures and
show them.
Matthias Clasen [Mon, 4 Jun 2018 11:16:35 +0000 (07:16 -0400)]
Add a 3.24 version
Matthias Clasen [Sun, 3 Jun 2018 23:21:33 +0000 (23:21 +0000)]
Merge branch 'gtk-3-24' into 'gtk-3-24'
GtkWindow: Handle non-square icons with height > width correctly
See merge request GNOME/gtk!173
Christian Stadelmann [Sun, 3 Jun 2018 19:05:46 +0000 (21:05 +0200)]
GtkWindow: Handle non-square icons with height > width correctly
Matthias Clasen [Sun, 3 Jun 2018 13:48:40 +0000 (09:48 -0400)]
menu: Remove unstable annotations
These apis are not going to change in GTK+ 3.x.
Matthias Clasen [Fri, 1 Jun 2018 15:59:55 +0000 (11:59 -0400)]
Drop Ctrl-Shift-e support
Now that we have Emoji completion, drop the rather limited
Ctrl-Shift-e support in GtkIMContextSimple, and leave this
sequence to input methods.
Matthias Clasen [Tue, 15 Aug 2017 21:35:03 +0000 (17:35 -0400)]
widget-factory: add emoji completion to an entry
Matthias Clasen [Sat, 19 Aug 2017 18:08:15 +0000 (14:08 -0400)]
entry: Add emoji completion
Pop up completions when the text in the entry matches :word:
This functionality has to be enabled using the enable-emoji-completion
property.
Matthias Clasen [Sat, 19 Aug 2017 18:06:47 +0000 (14:06 -0400)]
Add an emoji completion popup
This widget provides entry completion-like functionality
for Emoji codes like :grin: or :kiss:.
Matthias Clasen [Sat, 19 Aug 2017 18:07:59 +0000 (14:07 -0400)]
Export some entry functions privately
This will be used in the following commits.
Matthias Clasen [Thu, 17 May 2018 15:48:34 +0000 (16:48 +0100)]
emoji: Hide recent section when empty
This is part of https://gitlab.gnome.org/GNOME/gtk/merge_requests/143
by Julian Sperber.
Matthias Clasen [Thu, 17 May 2018 15:37:26 +0000 (16:37 +0100)]
emoji: Improve section scrolling
Leave some space above the section heading when scrolling.
This is a part of https://gitlab.gnome.org/GNOME/gtk/merge_requests/143
by Julian Sperber.
Jordi Mas [Sun, 3 Jun 2018 10:13:19 +0000 (12:13 +0200)]
Update Catalan translation
Christian Hergert [Fri, 6 May 2016 13:12:29 +0000 (16:12 +0300)]
treeview: respect expander-size style property
Without enforcement to the expander-size, we can end up rendering icons
rather fuzzy. This uses the expander-size style property to determine
the square for the icon, centered on what was the calculated space for
the expander.
Mohammed Sadiq [Thu, 31 May 2018 10:54:00 +0000 (16:24 +0530)]
widget: Fix example code in doc
Martin Blanchard [Mon, 12 Mar 2018 20:16:25 +0000 (20:16 +0000)]
wayland: Implement'gtk-fontconfig-timestamp' & 'gtk-modules'
The 'gtk-fontconfig-timestamp' and 'gtk-modules' settings are
currently not available at all on Wayland. On X11, they are
implemented through xsettings maintained up-to-date by
gnome-settings-daemon.
This patch implements both GtkSettings for Wayland using a
new dbus interface also provided by gnome-settings-daemon.
Closes #886
Jason Zaman [Fri, 25 May 2018 03:37:45 +0000 (11:37 +0800)]
gtksocket: Adjust X sizes by scale-factor
X uses unscaled sizes, so they must be scaled properly. Otherwise
GtkSockets end up twice as big as they should be.
Closes: https://bugzilla.gnome.org/show_bug.cgi?id=765327
Signed-off-by: Jason Zaman <jason@perfinion.com>
Close !165
Emmanuele Bassi [Wed, 30 May 2018 10:18:56 +0000 (10:18 +0000)]
Merge branch 'gtksocket-scale-3-22' into 'gtk-3-22'
gtksocket: Adjust X sizes by scale-factor
See merge request GNOME/gtk!164
Matthias Clasen [Wed, 30 May 2018 02:13:04 +0000 (02:13 +0000)]
Merge branch 'gesture-docs' into 'master'
Gesture stuff
See merge request GNOME/gtk!169
(cherry picked from commit
8b24d59cde9410db28c7b61d323fa8b1f0180300)
334c7911 gesture: Fix get_last_event() docs
e9765c04 gesture: Fix code snippet
4d2b39d9 gesturemultipress: Don’t fire ::released after ::cancel
Matthias Clasen [Wed, 30 May 2018 02:13:04 +0000 (02:13 +0000)]
Merge branch 'gesture-docs' into 'master'
Gesture stuff
See merge request GNOME/gtk!169
(cherry picked from commit
8b24d59cde9410db28c7b61d323fa8b1f0180300)
334c7911 gesture: Fix get_last_event() docs
e9765c04 gesture: Fix code snippet
4d2b39d9 gesturemultipress: Don’t fire ::released after ::cancel
Matthias Clasen [Mon, 28 May 2018 16:09:47 +0000 (12:09 -0400)]
x11: Don't set NET_WM_PID when sandboxed
It is not useful, and some window managers misinterpret it and
add some "runs as root" indication to the window decoration.
See https://github.com/mate-desktop/marco/issues/301
Matthias Clasen [Mon, 28 May 2018 16:04:17 +0000 (12:04 -0400)]
gdk: Add a private api to find sandboxes
This will be used in more places in the future.
Daniel Mustieles [Mon, 28 May 2018 15:53:58 +0000 (15:53 +0000)]
Update Spanish translation
Daniel Boles [Sun, 27 May 2018 17:10:02 +0000 (18:10 +0100)]
gdkdnd: Fix 2 typos in docs
Christoph Reiter [Sun, 27 May 2018 16:38:28 +0000 (18:38 +0200)]
ci: update the docker image to fedora 28
So we get a newer pango
Matthias Clasen [Sun, 27 May 2018 15:50:45 +0000 (15:50 +0000)]
Merge branch 'gtk-3-24' into 'gtk-3-24'
icontheme: Keep dir_mtimes in order
See merge request GNOME/gtk!162
Piotr Drąg [Sun, 27 May 2018 06:16:50 +0000 (08:16 +0200)]
Update Polish translation
Piotr Drąg [Sun, 27 May 2018 06:03:18 +0000 (08:03 +0200)]
Update POTFILES.in and POTFILES.skip
Daniel Boles [Sat, 26 May 2018 00:06:00 +0000 (01:06 +0100)]
SpinButton: Fix an obviously wrong arg description
:climb-rate is not about what you get when you single-click on a button,
as this implied: it's what happens if you hold down a button or a key.
Fix the description of @climb_rate to new(), and while here, mention the
key in the blurb of :climb-rate itself.
Daniel Boles [Tue, 22 May 2018 00:16:04 +0000 (01:16 +0100)]
GdkWin: Avoid leak if bailing from process_updates
There is no point creating the list if we don't need to because we are
failing out, and even less point in leaking it in that case.
Daniel Boles [Mon, 21 May 2018 23:00:32 +0000 (00:00 +0100)]
StyleContext: Add a missing apostrophe
(or rather, the right single quote dictated by the HIG, which is
semantically not an apostrophe at all! I will die on this hill.)
Olivier Fourdan [Thu, 19 Apr 2018 12:22:04 +0000 (14:22 +0200)]
wayland: check native window for crossing events
gdk_wayland_*_grab()/ungrab() would emit crossing events which translate
as focus_in/focus_out events for keyboard.
However, the ungrab() functions compare the native toplevel as this is
what gets the Wayland pointer enter/leave events with the grab window,
so if the grab is issued on a child gdk window, those won't match and we
would emit more focus_out events than focus_in events.
This means that a widget such as spice-gtk which issues a keyboard grab
whenever the pointer enters the window and releases the grab when it
leaves the window would get uneven numbers of focus_in/focus_out events.
Also, gdk_wayland_seat_ungrab() would not emit crossing events for
keyboard devices, whereas gdk_wayland_device_ungrab() does, which adds
even more potential discrepancies between focus_in/focus_out events.
To solve this problem, introduce two new helper functions which check
the relevant native windows to emit crossing events when needed that get
called evenly from both gdk_wayland_seat_grab()/ungrab() and gdk_Wayland
_device_grab()/ungrab() APIs.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=780422
Fixes: https://gitlab.gnome.org/GNOME/gtk/issues/792
Jason Zaman [Fri, 25 May 2018 03:37:45 +0000 (11:37 +0800)]
gtksocket: Adjust X sizes by scale-factor
X uses unscaled sizes, so they must be scaled properly. Otherwise
GtkSockets end up twice as big as they should be.
Closes: https://bugzilla.gnome.org/show_bug.cgi?id=765327
Signed-off-by: Jason Zaman <jason@perfinion.com>
Jan Alexander Steffens (heftig) [Wed, 23 May 2018 18:06:01 +0000 (20:06 +0200)]
icontheme: Keep dir_mtimes in order
Don't reverse the order each time we insert a theme. Reverse it only
once, after all themes have been loaded.
Fixes https://gitlab.gnome.org/GNOME/gtk/issues/1115
Carlos Garnacho [Tue, 22 May 2018 11:06:35 +0000 (11:06 +0000)]
Merge branch 'bz780422' into 'gtk-3-22'
wayland: check native window for crossing events
See merge request GNOME/gtk!147
Daniel Boles [Mon, 21 May 2018 22:38:23 +0000 (23:38 +0100)]
StyleContext: Don't advise using invalidate()
It's deprecated. Also, set_screen() is not used/needed in the demo cited
Matthias Clasen [Mon, 21 May 2018 21:15:41 +0000 (17:15 -0400)]
Remove the "without parent" warning
We've had it for a long time, and it hasn't really made
a difference. And I don't think we are prepared to turn
this into a hard error. So just drop it.
Daniel Boles [Mon, 21 May 2018 18:42:57 +0000 (19:42 +0100)]
Range: Up should only mean ++ if we are a GtkScale
The last round of patches to get the desired direction of value move in
response to scrolls/keypresses on scales had the inadvertent side effect
of giving the opposite direction on scrollbars. Seeing as gtkrange.c is
already a collection of hacks, add another so that fix only holds if the
instance is a GtkScale, since that is what those patches were aimed at.
Close https://gitlab.gnome.org/GNOME/gtk/issues/1065
Daniel Boles [Sun, 20 May 2018 18:28:13 +0000 (19:28 +0100)]
ProgressBar: Fix typo in doc comment
Daniel Boles [Mon, 21 May 2018 18:42:57 +0000 (19:42 +0100)]
Range: Up should only mean ++ if we are a GtkScale
The last round of patches to get the desired direction of value move in
response to scrolls/keypresses on scales had the inadvertent side effect
of giving the opposite direction on scrollbars. Seeing as gtkrange.c is
already a collection of hacks, add another so that fix only holds if the
instance is a GtkScale, since that is what those patches were aimed at.
Close https://gitlab.gnome.org/GNOME/gtk/issues/1065
Daniel Boles [Sun, 20 May 2018 18:28:13 +0000 (19:28 +0100)]
ProgressBar: Fix typo in doc comment
Matthias Clasen [Sat, 31 Mar 2018 18:43:04 +0000 (14:43 -0400)]
font chooser: Support font variations
Add sliders for the axes on the tweak page.
Matthias Clasen [Sat, 31 Mar 2018 13:57:34 +0000 (09:57 -0400)]
font chooser: Add properties for font features and language
These can't be returned as part of the font description,
so we need new api for them. For now, this is just readonly
properties. Maybe these should be writable too, eventually.
Matthias Clasen [Sat, 31 Mar 2018 13:37:18 +0000 (09:37 -0400)]
font chooser: Add font features
Populate the tweak page with OpenType font features.
Matthias Clasen [Sat, 31 Mar 2018 02:49:07 +0000 (22:49 -0400)]
font chooser: Add a tweak page
Matthias Clasen [Fri, 30 Mar 2018 19:02:49 +0000 (15:02 -0400)]
font chooser: introduce font chooser levels
This is a more systematic approach to reducing the
level of detail in the font chooser.
Matthias Clasen [Sat, 31 Mar 2018 17:35:16 +0000 (13:35 -0400)]
Bump the pango requirement
We want to use the new font variation api in pango 1.41.
Matthias Clasen [Thu, 17 May 2018 18:28:28 +0000 (19:28 +0100)]
Add a flatpak manifest for widget-factory
This makes it easier to build GTK+.
Matthias Clasen [Thu, 17 May 2018 15:19:49 +0000 (15:19 +0000)]
Merge branch '1053-scroll-cursor-gets-left-behind-if-a-child-widget-steals-the-scroll' into 'gtk-3-22'
Resolve "Scroll cursor gets left behind if a child widget steals the scroll"
See merge request GNOME/gtk!134
Matthias Clasen [Mon, 14 May 2018 12:03:34 +0000 (13:03 +0100)]
textview: Don't scroll for pastes in another view
GtkTextView scrolls to the insertion point when the text
buffer signals a paste is done. This is wrong when there
are multiple views on the same buffer, and the paste
happened in another view.
To fix this, flip the handling of the scroll_after_paste
boolean to only be TRUE if we know that we want to scroll.
Benjamin Otte [Wed, 16 May 2018 12:48:46 +0000 (12:48 +0000)]
Merge branch '1069-thread-1-glade-received-signal-sigfpe-arithmetic-exception' into 'gtk-3-22'
Resolve "Thread 1 "glade" received signal SIGFPE, Arithmetic exception."
See merge request GNOME/gtk!151
Mohammed Sadiq [Sun, 13 May 2018 07:57:07 +0000 (13:27 +0530)]
appchooserdialog: Fix memory leak
Mohammed Sadiq [Sun, 13 May 2018 07:51:06 +0000 (13:21 +0530)]
appchooserdialog: Don't fire notify::heading twice
The gtk_app_chooser_dialog_set_heading() function do emit
notify::heading. Since the setter simply calls the function,
the setter itself shouldn't emit a notify signal by itself.
Mohammed Sadiq [Fri, 11 May 2018 04:49:09 +0000 (10:19 +0530)]
textview: Always show select-all button in touch popup
"Select all" action is possible regardless of the text selection state
or if the text is editable or not.
Mohammed Sadiq [Fri, 11 May 2018 03:17:56 +0000 (08:47 +0530)]
textview: Simplify creating bubble action buttons
Buttons can be created simply with gtk_button_new_from_icon_name().
Juan Pablo Ugarte [Sat, 12 May 2018 14:06:37 +0000 (11:06 -0300)]
GtkBox: do not divide by zero on gtk_box_size_allocate_with_center()
https://gitlab.gnome.org/GNOME/gtk/issues/1069
Chun-wei Fan [Sat, 12 May 2018 03:03:55 +0000 (11:03 +0800)]
Visual Studio 2008 builds: Generate gtk/gtktypefuncs.c
This is the updates to the Visual Studio 2008 projects to generate
gtk/gtktypefuncs.c using the preprocessor and the gentypefuncs.py that
was adapted from master.
Unfortunately we could not clean up the projects as we did for the 201x
ones due to the differences in project file format.
Chun-wei Fan [Sat, 12 May 2018 02:52:47 +0000 (10:52 +0800)]
Visual Studio 201x builds: Clean up project files
Combine repetitive parts, and unify using $(PythonDir) for all builds,
which the paths set in the property sheets are now based on the Visual
Studio version and platform combination.
Chun-wei Fan [Sat, 12 May 2018 02:24:59 +0000 (10:24 +0800)]
Visual Studio 201x builds: Fix previous commit
Not that it will make a difference, but to be consistent with the
autotools builds. Include gtkx.h instead of gtk.h when we generate the
source to feed to the preprocessor.
Chun-wei Fan [Fri, 11 May 2018 17:12:23 +0000 (01:12 +0800)]
Visual Studio 201x builds: Generate gtk/gtktypefuncs.c
We now need to generate gtktypefuncs.c by ourselves, so modify the
gentypefuncs.py script from master, and add a custom build step in the
projects to generate gtktypefuncs.c. The custom build step for the 2008
projects will be added later.
Matthias Clasen [Fri, 11 May 2018 15:24:55 +0000 (15:24 +0000)]
Merge branch 'wip/restart-cursor-animation-gtk-3' into 'gtk-3-22'
wayland: Fix restarting cursor animation
See merge request GNOME/gtk!150
Chun-wei Fan [Fri, 11 May 2018 10:05:46 +0000 (18:05 +0800)]
gtk/Makefile.am: Fix Visual Studio project generation
We now need the generated sources to be included explicitly in the list
so that they get listed in the project files to be built.
Jonas Ådahl [Wed, 9 May 2018 20:13:10 +0000 (22:13 +0200)]
wayland: Fix restarting cursor animation
When an animated cursor was set and the previous cursor animation delay
happened to be the same, we wouldn't restart the animation timeout and
just return G_SOURCE_CONTINUE assuming the timer would continue. This
assumption is however only valid if the function was called from the
timeout, which is not the case.
Instead also arm the timer also if there is no previous timer active.
Olivier Fourdan [Thu, 19 Apr 2018 12:22:04 +0000 (14:22 +0200)]
wayland: check native window for crossing events
gdk_wayland_*_grab()/ungrab() would emit crossing events which translate
as focus_in/focus_out events for keyboard.
However, the ungrab() functions compare the native toplevel as this is
what gets the Wayland pointer enter/leave events with the grab window,
so if the grab is issued on a child gdk window, those won't match and we
would emit more focus_out events than focus_in events.
This means that a widget such as spice-gtk which issues a keyboard grab
whenever the pointer enters the window and releases the grab when it
leaves the window would get uneven numbers of focus_in/focus_out events.
Also, gdk_wayland_seat_ungrab() would not emit crossing events for
keyboard devices, whereas gdk_wayland_device_ungrab() does, which adds
even more potential discrepancies between focus_in/focus_out events.
To solve this problem, introduce two new helper functions which check
the relevant native windows to emit crossing events when needed that get
called evenly from both gdk_wayland_seat_grab()/ungrab() and gdk_Wayland
_device_grab()/ungrab() APIs.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=780422
Fixes: https://gitlab.gnome.org/GNOME/gtk/issues/792
John Ralls [Tue, 1 May 2018 03:34:45 +0000 (20:34 -0700)]
[Quartz] Hardcode screen resolution for text at 96.0.
It seems that CoreText is internally calibrated for this, see
https://bugzilla.gnome.org/show_bug.cgi?id=787867 for a detailed
discussion.
Benjamin Otte [Tue, 10 Apr 2018 12:22:16 +0000 (14:22 +0200)]
gtk: Fix reserved pointers
So gcc stops complaining about unnecessary parenthesis.
Closes #1059
Björn Lindqvist [Mon, 24 Mar 2008 21:31:22 +0000 (21:31 +0000)]
Range: Bin pointless check before emitting signal
In scroll_event(), there is no need to check whether we are realized
before emitting ::change-value, as we must be when receiving an event.
Git-formatted/rebased/cleaned up by Daniel Boles <dboles.src@gmail.com>
Close https://gitlab.gnome.org/GNOME/gtk/issues/292
Daniel Boles [Sun, 6 May 2018 10:41:12 +0000 (11:41 +0100)]
Menu: cleanups for previous commit and nearby
• #include <math.h> for the new uses of floor()
• Move the new ints and popdown_data into the scopes where they are used
• Don’t pointlessly init other ints to 0 as they always get reassigned
• Burninate gint
Sam Douglas [Tue, 15 Nov 2016 02:57:43 +0000 (02:57 +0000)]
Menu: Fix broken navigation triangle/hysteresis
This issue was caused when mouse coordinates were changed to floating
point values in commit
e8b38fedbd8961df4aaaa75b122a06ddc68e75f2.
This patch floors the event->x_root and event->y_root values when
setting the navigation region, so the previous behaviour is restored.
https://gitlab.gnome.org/GNOME/gtk/issues/450
Daniel Boles [Sat, 5 May 2018 10:40:43 +0000 (11:40 +0100)]
ScrolledWindow: Unset cursor if child takes scroll
https://gitlab.gnome.org/GNOME/gtk/issues/1053
Benjamin Otte [Fri, 4 May 2018 09:26:15 +0000 (11:26 +0200)]
x11: Set a transparent background on windows by default
This avoids black flicker on compositing WMs when a window is first shown.